import request from "@/utils/request";

export function GetCategoryList(data) {
  return request({
    url: "Category/GetCategoryList",
    method: "post",
    data
  });
}
/**添加类目 */
export function AddFirst(data) {
  return request({
    url: "Category/AddCategory",
    method: "post",
    data
  });
}

/**修改类目 */
export function updateFirst(data) {
  return request({
    url: "Category/UpdateCategory",
    method: "post",
    data
  });
}

/**删除类目 */
export function DelFirst(data) {
  return request({
    url: "Category/DeleteCategory",
    method: "post",
    data,
    headers: {
      "Content-Type": "application/json-patch+json"
    }
  });
}

/**获取全部 */
export function GetFullList(data) {
  return request({
    url: "Category/GetFullList",
    method: "post",
    data
  });
}

/**添加产品 */
export function Addprodect(data) {
  return request({
    url: "Category/AddProduct",
    method: "post",
    data
  });
}

/**添加产品类型 */
export function AddProductType(data) {
  return request({
    url: "Category/AddProductType",
    method: "post",
    data
  });
}
